<?php
	require_once('includes/general.php');
    if(!tep_db_checkDb()) die('ko ket noi dc csdl');
    $content='';
    $maloaitintuc=$_GET['maloaitintuc'];
    $matintuc=$_GET['matintuc'];
    # menu danh muc san pham
    $sql1='select * from tbl_tin_tuc where id !='.$matintuc.' and ma_danh_muc_tin_tuc='.$maloaitintuc.'
    ';
    $kq1=tep_db_query($sql1);
    
    $sql_1='SELECT ten_danh_muc_tin_tuc FROM tbl_danh_muc_tin_tuc WHERE id='.$maloaitintuc.' ';
    $kq_1=tep_db_query($sql_1);
    $item_1=tep_db_fetch_array($kq_1);
    $tendm="";
    if($maloaitintuc==1){
        $tendm='lamdep';
    }
    else{
        $tendm='suckhoe';
    }
    
    $sql_2='SELECT tieu_de FROM tbl_tin_tuc WHERE id='.$matintuc.' ';
    $kq_2=tep_db_query($sql_2);
    $item_2=tep_db_fetch_array($kq_2);
    
    $content.='<div class="link"><a href="index.php?page=lamdepvasuckhoe">Làm đẹp và sức khỏe</a> >> <a href="index.php?page='.$tendm.'&maloaitintuc='.$maloaitintuc.'">'.$item_1['ten_danh_muc_tin_tuc'].'</a> >><a href="#"> '.$item_2['tieu_de'].'</a></div></br>
                
    <div id="menu_left_chung">
    <div id="menu_left">
                <ul>
                  ';
        while($item1=tep_db_fetch_array($kq1)){
            $content.='
                  <li><a href="index.php?matintuc='.$item1['id'].'&amp;maloaitintuc='.$item1['ma_danh_muc_tin_tuc'].'">'.$item1['tieu_de'].'</a><span class="closed"></span>
                   
                  </li>';
                  }
                  $content.='
                  
        </ul>
    </div>
<div class="menu_left_rieng">
    <a href="lienhe.php" rel="lienhe" class="lienhe"><img src="images/contact_card.jpg" width="216"  alt="Arrow Prev" /></a>
    <a href="#" class="next"><img src="images/hotline_number.gif" width="216"  alt="Arrow Next" /></a></div>
    </div>';
    #end menu danh muc san pham
    /*Thong tin chi tiet san pham*/
    
    $sql='select * from tbl_tin_tuc where id='.$matintuc.' ';
    $kq=tep_db_query($sql);
    $item=tep_db_fetch_array($kq);
    
    
    $content.='
        <div id="main_content">
            <h1> ..:::.. '.$item['tieu_de'].' ..:::.. </h1>                       
            <div>'.$item['mo_ta_chi_tiet'].'</div>
        </div>
    ';
    echo $content;
?>